import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  title: [{ required: true, message: "请输入公告名称", trigger: "blur" }],
  type: [{ required: true, message: "请选择类型", trigger: "blur" }],
  des: [{ required: true, message: "请输入描述简介", trigger: "blur" }],
  content: [{ required: true, message: "请输入公告内容", trigger: "blur" }],
  zt: [{ required: true, message: "请选择状态", trigger: "blur" }],
  noticetime: [{ required: true, message: "请输入发布时间", trigger: "blur" }],
  orderby: [{ required: true, message: "请输入排序顺序", trigger: "blur" }]
});
